﻿using System.Data.SqlClient;
using System.Web.Configuration;

namespace ShellCommandService
{
    public class DBHelper
    {
        internal static void ExecuteSqlCommand(string sqlCommand)
        {
            SqlConnection conn =
                new SqlConnection(WebConfigurationManager.ConnectionStrings["conn"].ConnectionString);
            conn.Open();
            SqlCommand command = new SqlCommand(sqlCommand, conn);
            command.ExecuteNonQuery();
            conn.Close();
        }
    }
}